{% extends 'base.html.twig' %}
{% block body_bar %}
    <h5>{{ dry_translation('list') }}</h5>
    <div class="ibox-tools">
        <a class="btn btn-outline btn-info" href="{{ path("grouppermission_new") }}" data-route="grouppermission_new">{{ dry_translation('new') }}</a>
    </div>
{% endblock %}
{% block body %}
    <table class="table table-striped">
        <thead>
            <tr>
                <th>{{ dry_translation('GroupPermission.id') }}</th>
                <th>{{ dry_translation('GroupPermission.dryGroup') }}</th>
                <th>{{ dry_translation('GroupPermission.dryRouteName') }}</th>
                <th>{{ dry_translation('GroupPermission.dryAddtime') }}</th>
                <th>{{ dry_translation('GroupPermission.dryNote') }}</th>
                <th>{{ dry_translation('action') }}</th>
            </tr>
        </thead>
        <tbody>
            {% for groupPermission in groupPermissions %}
                <tr>
                    <td>{{ groupPermission.id }}</td>
                    <td>{{ groupPermission.dryGroup }}</td>
                    <td>{{ groupPermission.dryRouteName }}</td>
                    <td>{{ groupPermission.dryAddtimeString }}</td>
                    <td>{{ groupPermission.dryNote }}</td>
                    <td>
                        <div class="btn-group">
                            <a class="btn btn-primary" href="{{ dry_path('grouppermission_show', groupPermission.id) }}" data-route="grouppermission_show">{{ dry_translation('show') }}</a>
                            <a class="btn btn-primary" href="{{ dry_path('grouppermission_edit', groupPermission.id) }}" data-route="grouppermission_edit">{{ dry_translation('edit') }}</a>
                        </div>
                    </td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
{% endblock %}
